#include"server.hpp"


int main(int argc,char** argv)
{   
    if(argc != 2)
    {
        std::cerr<<"Usage:" << argv[0] << " port" << std::endl;
        exit(static_cast<int>(ExitCode::USAGE_ERR));
    }
    std::unique_ptr<TcpServer>  ts =  std::make_unique<TcpServer>(std::stoi(argv[1]));
    ts->Init();
    ts->Run();

    return 0;
}

